import { http } from "@/utils/http";
import baseUrlProxy from "@/api/baseUrlProxy";

export const getTradeRetailContract = (data?: object) => {
  return http.request<any>("get", baseUrlProxy + "/api/tradeRetailContract", {
    params: data
  });
};
export const downTradeRetailContract = (data?: object) => {
  return http.request<any>(
    "get",
    baseUrlProxy + "/api/tradeRetailContract/download",
    {
      params: data
    }
  );
};
export const addTradeRetailContract = (data?: object) => {
  return http.request<any>("post", baseUrlProxy + "/api/tradeRetailContract", {
    data: data
  });
};
export const editTradeRetailContract = (data?: object) => {
  return http.request<any>("put", baseUrlProxy + "/api/tradeRetailContract", {
    data: data
  });
};
export const delTradeRetailContract = (data?: object) => {
  return http.request<any>(
    "delete",
    baseUrlProxy + "/api/tradeRetailContract",
    {
      data: data
    }
  );
};
